package com.yigo.prc.infra.repo.dataobject;

import com.baomidou.mybatisplus.annotation.IdType;
import com.tangzc.mpe.autotable.annotation.Column;
import com.tangzc.mpe.autotable.annotation.ColumnId;
import com.tangzc.mpe.autotable.annotation.Table;
import com.tangzc.mpe.autotable.strategy.mysql.data.MysqlTypeConstant;
import com.yigo.framework.base.BasePO;
import lombok.Data;

/**
 * @author chenzl
 */
@Data
@Table(value = "prc_shop", comment = "店铺主表")
public class PrcShopPO extends BasePO {
    /**
     * 门店编号<br/>
     * 建表通过执行如下SQL控制ID从10000开始递增<br/>
     * ALTER TABLE table_name AUTO_INCREMENT = 10000;<br/>
     */
    @ColumnId(mode = IdType.AUTO, comment = "门店编号", type = MysqlTypeConstant.INT, length = 10)
    private Long id;
    /**
     * 品牌名称
     */
    @Column(comment = "门店名称", length = 30, notNull = true)
    private String shopName;

    /**
     * 归属城市
     */
    @Column(comment = "归属城市", length = 30, notNull = true)
    private String cityName;

    /**
     * 负责人
     */
    @Column(comment = "负责人", length = 30, notNull = true)
    private String manager;
    /**
     * 负责人
     */
    @Column(comment = "联系电话", length = 30, notNull = true)
    private String managerTel;
    /**
     * 类型 如直营、加盟
     */
    @Column(comment = "类型", length = 30, notNull = true)
    private String 类型;
}
